package com.springboot.dto;

import com.springboot.model.ChatRecord;

public class PatientChatIndex {
    private ChatRecord chatRecord;
    private String patientName;
    private String doctorName;
    private String patientHeadLink;
    private String doctorHeadLink;
    private Integer readFlag;//判断消息患者是否已读  1已读
    private Integer doctorId;
    private Integer flag;//该患者是否是发送方，1是发送方
    private String chatTime;
    private String isRight;//是否是发送方  true  /  false
    private String isImg;//是否是图片  true /false

    public PatientChatIndex() {
    }

    public PatientChatIndex(ChatRecord chatRecord, String patientName, String doctorName, String patientHeadLink,
                            String doctorHeadLink, Integer readFlag) {
        this.chatRecord = chatRecord;
        this.patientName = patientName;
        this.doctorName = doctorName;
        this.patientHeadLink = patientHeadLink;
        this.doctorHeadLink = doctorHeadLink;
        this.readFlag = readFlag;
    }

    public PatientChatIndex(ChatRecord chatRecord, String patientName, String doctorName, String patientHeadLink,
                            String doctorHeadLink, Integer readFlag, Integer doctorId) {
        this.chatRecord = chatRecord;
        this.patientName = patientName;
        this.doctorName = doctorName;
        this.patientHeadLink = patientHeadLink;
        this.doctorHeadLink = doctorHeadLink;
        this.readFlag = readFlag;
        this.doctorId = doctorId;
    }

    public ChatRecord getChatRecord() {
        return chatRecord;
    }

    public void setChatRecord(ChatRecord chatRecord) {
        this.chatRecord = chatRecord;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getPatientHeadLink() {
        return patientHeadLink;
    }

    public void setPatientHeadLink(String patientHeadLink) {
        this.patientHeadLink = patientHeadLink;
    }

    public String getDoctorHeadLink() {
        return doctorHeadLink;
    }

    public void setDoctorHeadLink(String doctorHeadLink) {
        this.doctorHeadLink = doctorHeadLink;
    }

    public Integer getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(Integer readFlag) {
        this.readFlag = readFlag;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getChatTime() {
        return chatTime;
    }

    public void setChatTime(String chatTime) {
        this.chatTime = chatTime;
    }

    public String getIsRight() {
        return isRight;
    }

    public void setIsRight(String isRight) {
        this.isRight = isRight;
    }

    public String getIsImg() {
        return isImg;
    }

    public void setIsImg(String isImg) {
        this.isImg = isImg;
    }

    public String toTestString() {
        return "PatientChatIndex{" +
                "chatRecord=" + chatRecord +
                ", patientName='" + patientName + '\'' +
                ", doctorName='" + doctorName + '\'' +
                ", patientHeadLink='" + patientHeadLink + '\'' +
                ", doctorHeadLink='" + doctorHeadLink + '\'' +
                ", unreadnum=" + readFlag +
                ", doctorId=" + doctorId +
                '}';
    }

}
